package com.ai.wxy.spring.jpa.test.query.jpa;

import com.ai.spring.common.annotation.OrderBy;
import com.ai.spring.common.annotation.Query;
import com.ai.spring.common.query.IQueryCriteria;
import lombok.Data;

import java.util.Date;
import java.util.List;


/**
 * MgRsconf条件查询类
 *
 * @author 石头
 * @Date 2019/10/22
 * @Version 1.0
 **/
@Data
public class MgRsconfQueryCriteria implements IQueryCriteria {
    /**分组字段*/
    private String groupBy;
    @Query(type=Query.Type.IN)
    private List<Integer> status;
    @Query(type=Query.Type.GTE)
    private Date rsBegin;
    @OrderBy(type=OrderBy.Type.DESC)
    private String order;
    @Override
    public String groupBy() {
        return groupBy;
    }
}
